#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int main() {
    float a;
    cin >> a;
    double b = a - (int)a;
    if (b >= 0.5)
    {
        a++;
        cout << (int)a << endl;
    }
    else if (b <= -0.5)
    {
        a--;
        cout << (int)a << endl;
    }
    else
    {
        cout << (int)a << endl;
    }
}